<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>05_元素溢出</title>
    <style>
        div{
            background-color: yellow;
            width: 900px;
            height: 700px;
            overflow: visible;
            overflow: hidden;
            overflow: scroll;
            overflow: auto;
        }
        .txt{
            background-color: lime;
            width: 300px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
    </style>

</head>
<body>
<div class="txt">
    <div>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusamus accusantium aperiam, aspernatur blanditiis
        commodi consequatur corporis cum est exercitationem facere fuga harum id illum natus omnis quae quam sint unde.
    </div>
</div>
    <div>
        <img src="img/1.png" alt="">
    </div>
</body>
</html>